import request from '@/utils/request'

export function fetchSeriesList() {
  return request({
    url: 'manager/series/list',
    method: 'get'
  })
}

export function createSeries(data) {
  return request({
    url: 'manager/series/create',
    method: 'post',
    data
  })
}

export function setSeriesOrder(data) {
  return request({
    url: 'manager/series/order',
    method: 'post',
    data
  })
}

export function updateSeries(data) {
  return request({
    url: 'manager/series/update',
    method: 'post',
    data
  })
}

export function deleteSeries(data) {
  return request({
    url: 'manager/chapter/delete',
    method: 'post',
    data
  })
}
